projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4caeac
)
[XM] Throw proper exception for xm console for unstarted domains.
author
Alastair Tse
<atse@xensource.com>
Thu, 21 Dec 2006 12:05:41 +0000
(12:05 +0000)
committer
Alastair Tse
<atse@xensource.com>
Thu, 21 Dec 2006 12:05:41 +0000
(12:05 +0000)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xm/main.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/main.py
b/tools/python/xen/xm/main.py
index 3c118172aee91bb0c40a2e369a3efe3eb8dcc5bb..450d7973549087f13da60de348625d9561cf16ad 100644
(file)
--- a/
tools/python/xen/xm/main.py
+++ b/
tools/python/xen/xm/main.py
@@
-1244,7
+1244,7
@@
def xm_console(args):
if quiet:
sys.exit(1)
else:
- raise
Exception("Domain is not started"
)
+ raise
xmlrpclib.Fault(0, "Domain '%s' is not started" % dom
)
console.execConsole(domid)